﻿using MvcContrib.PortableAreas;
using Tamias.BasicCmsPortableArea.Messages;
using Tamias.DefaultImplementation.Data;

namespace Tamias.DefaultImplementation.MessageHandlers
{
    public class GetGroupsMessageHandler : MessageHandler<GetGroupsMessage>
    {
        public override void Handle(GetGroupsMessage message)
        {
            var data = new ContentGroupData();
            message.Groups = data.GetList();
        }
    }
}
